home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1998 September / Macworld (1998-09).dmg / Shareware World / Info / For Developers / Script Tools 1.3.6 / Examples / Choose Folder Example < prev    next >
Text File  |  1993-06-17  |  368b  |  11 lines

  1. set folderOK to true
  2. try
  3.     set archiveFolder to choose folder with prompt "Please select an Archive folder:"
  4. on error errText number errNum
  5.     display dialog "Choose folder canceled" buttons {"OK"} default button {"OK"}
  6.     set folderOK to false
  7. end try
  8.  
  9. if folderOK then
  10.     display dialog "Selected folder: “" & archiveFolder & "”" buttons {"OK"} default button {"OK"}
  11. end if